package part17_策略模式_鸭子问题.p02_策略模式改进;


/**
 * @ClassName: ToyDuck
 * @Author: AllenSun
 * @Date: 2020/3/9 0:09
 */
public class WildDuck extends Duck {
    public WildDuck() {
        flyBehavior=new GoodFlyBehavior();
    }

    @Override
    public void display() {
        System.out.println("这是野鸭");
    }

}
